package com.wf.course.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.utils.page.PageBean;
import com.wf.course.dao.IReplyInfoMapper;
import com.wf.course.model.comm.ReplyInfo;
import com.wf.course.service.IReplyInfoService;

@Service
@Transactional
public class IReplyInfoServiceImpl implements IReplyInfoService {
	
	@Autowired
	private IReplyInfoMapper mapper;

	@Override
	public void getReplyInfoList(PageBean<ReplyInfo> pageBean) {
		// TODO Auto-generated method stub
		
		pageBean.setResults(mapper.getReplyInfoList(pageBean));
		pageBean.setTotalCount(mapper.getReplyInfoCount(pageBean));
		
	}

	@Override
	public void saveReplyInfo(ReplyInfo replyInfo) {
		// TODO Auto-generated method stub
		mapper.saveReplyInfo(replyInfo);
		
	}

	@Override
	public void deleteReplyInfo(Integer id) {
		// TODO Auto-generated method stub
		mapper.deleteReplyInfo(id);
		
	}

	@Override
	public ReplyInfo downLoadReplyInfo(Integer id) {
		// TODO Auto-generated method stub
		return mapper.downLoadReplyInfo(id);
	}

	@Override
	public Integer updateReplyInfo(ReplyInfo replyInfo) {
		// TODO Auto-generated method stub
		return mapper.updateReplyInfo(replyInfo);
		
	}

	 

}
